package com.xydtech.ecard.merchant.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.xydtech.common.annotation.Excel;
import com.xydtech.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 电子名片商户释放记录对象 ecard_release_record
 *
 * @author yuzhiguo
 * @date 2024-08-14 下午5:22
 */
public class EcardReleaseRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 商户id */
    @Excel(name = "商户id")
    private Long merchantId;

    /** 释放人用户id */
    @Excel(name = "释放人用户id")
    private Long releaseId;

    /** 释放前归属人注册id */
    @Excel(name = "释放前归属人注册id")
    private Long belongRegistId;

    /** 商户类型：1-个人，2-商户，3-企业，4-新型农业主体 */
    @Excel(name = "商户类型")
    private String merchantType;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date creationTime;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setMerchantId(Long merchantId)
    {
        this.merchantId = merchantId;
    }

    public Long getMerchantId()
    {
        return merchantId;
    }
    public void setReleaseId(Long releaseId)
    {
        this.releaseId = releaseId;
    }

    public Long getReleaseId()
    {
        return releaseId;
    }
    public void setBelongRegistId(Long belongRegistId)
    {
        this.belongRegistId = belongRegistId;
    }

    public Long getBelongRegistId()
    {
        return belongRegistId;
    }
    public void setMerchantType(String merchantType)
    {
        this.merchantType = merchantType;
    }

    public String getMerchantType()
    {
        return merchantType;
    }
    public void setCreationTime(Date creationTime)
    {
        this.creationTime = creationTime;
    }

    public Date getCreationTime()
    {
        return creationTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("merchantId", getMerchantId())
                .append("releaseId", getReleaseId())
                .append("belongRegistId", getBelongRegistId())
                .append("merchantType", getMerchantType())
                .append("remark", getRemark())
                .append("creationTime", getCreationTime())
                .toString();
    }
}
